package com.jack.charging.order.rabbitmq;

/**
 * @author Jack
 * @date 2025/2/14 10:49
 * @see
 * @since
 */

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 消费者
 */
@Component
public class RabbitMQCnsumer {
    @RabbitListener(queues = "myQueue")
    public void receiveMessage(String message) {
        System.out.println("接收到消息：" + message);
    }
}
